#include "common.h"
#include "C_UDPClient.h"

int main(int argc,char *argv[])
{
	C_MClient m_UDPFileClient;
	
	if(m_UDPFileClient.init("127.0.0.1","5000","127.0.0.1","4500","save.dat")<0)
	{
	printf("The Client can not init");
	return 0;
	}

	if(m_UDPFileClient.start()<0)
	{
	printf("The server can not start");
	return 0;
	}
	
	m_UDPFileClient.SendMessageThroughTCP("start",6);
	getchar();
	m_UDPFileClient.stop();
}